package com.frogs.ucenter.service.daoimpl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.UserRechargeConsumeRecordDao;
import com.frogs.ucenter.entity.UserRechargeConsumeRecord;
import com.frogs.ucenter.entity.UserRechargeConsumeRecordWithUser;
import com.frogs.ucenter.service.UserRechargeConsumeRecordService;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userRechargeConsumeRecordService")
public class UserRechargeConsumeRecordServiceImpl extends BaseServiceImpl<UserRechargeConsumeRecord> implements UserRechargeConsumeRecordService {
	
    @Resource
    private UserRechargeConsumeRecordDao userRechargeConsumeRecordDao;

    public UserRechargeConsumeRecordServiceImpl() {
        super();
    }

    public UserRechargeConsumeRecordDao getUserRechargeConsumeRecordDao() {
        return userRechargeConsumeRecordDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserRechargeConsumeRecord> getBaseDao() {
        return userRechargeConsumeRecordDao;
    }

    public void setUserRechargeConsumeRecordDao(UserRechargeConsumeRecordDao userRechargeConsumeRecordDao) {
        this.userRechargeConsumeRecordDao = userRechargeConsumeRecordDao;
    }

	@Override
	public PageList<UserRechargeConsumeRecordWithUser> listRecharge(
			Map<String, Object> params, int pageNo, int pageSize) {
		return userRechargeConsumeRecordDao.selectUserRescharge(params, pageNo, pageSize);
	}
}